package com.lanou.utp.entity;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author MaQingYun
 */
@AllArgsConstructor
@NoArgsConstructor
public class OrgCommonProperty implements Serializable {

    public interface addCollege { } ;
    public interface updateCollege { } ;

    @NotNull(message = "不能为空", groups = {updateCollege.class})
    private Long id;

    @NotBlank(message = "不能为空", groups = {updateCollege.class})
    private String leaderName;

    @NotBlank(message = "不能为空", groups = {updateCollege.class})
    private String parentNode;

    @NotBlank(message = "不能为空", groups = {addCollege.class, updateCollege.class})
    private String name;

    @NotNull(message = "不能为空", groups = {addCollege.class, updateCollege.class})
    private Long leaderId;

    @NotNull(message = "不能为空", groups = {addCollege.class, updateCollege.class})
    private Long parentId;

    @NotNull(message = "不能为空", groups = {addCollege.class, updateCollege.class})
    private Integer level;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLeaderName() {
        return leaderName;
    }

    public void setLeaderName(String leaderName) {
        this.leaderName = leaderName;
    }

    public String getParentNode() {
        return parentNode;
    }

    public void setParentNode(String parentNode) {
        this.parentNode = parentNode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getLeaderId() {
        return leaderId;
    }

    public void setLeaderId(Long leaderId) {
        this.leaderId = leaderId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }


}
